package com.ibeeking.found.org.service.common.dos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ibeeking.found.common.base.BaseDO;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @ClassName DepartmentDO
 * @Description
 * @Author ibeeking
 * @Date 2021-01-06 10:42
 **/
@ToString(callSuper=true)
@Data
@TableName("department")
public class DepartmentDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 父id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 部门代码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 部门名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 部门名称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 父id
     */
    @TableField(value = "leader_id")
    private Long leaderId;

    /**
     * 部门联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 级别
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 顺序号
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否启用，1-启用，0-未启用
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;
}
